package com.example.administrator;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Toast;

/**
 * Created by Administrator on 2018/5/14.
 */

public class SecondActivity extends AppCompatActivity  implements View.OnClickListener{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);
        findViewById(R.id.button1).setOnClickListener(this);
    }
    @Override
    public void onClick(View view) {
        Toast.makeText(this,"正在跳转中，请稍后。。。",Toast.LENGTH_SHORT).show();
        Intent intent=new Intent(this,ThirdActivity.class);
        startActivity(intent);
        Toast.makeText(this,"跳转成功",Toast.LENGTH_SHORT).show();
    }
}
